package cn.trigram.jmx.hello_mbean;

import javax.management.Notification;
import javax.management.NotificationListener;

/**
 * 定义消息监听器
 */
public class HelloListener implements NotificationListener {

  public void handleNotification(Notification notification, Object handback) {

    System.out.println(HelloListener.class.getName() + "-----start");
    System.out.println(notification.getMessage());
    System.out.println(handback);
    System.out.println(HelloListener.class.getName() + "-----end");
  }

}
